------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  R:\personlig\fenellac\menarche_replication\analysis\temp/results-for-table-mediation-analysis-panel-c.log
  log type:  text
 opened on:  30 Apr 2020, 18:26:24

. * set to Stata version 12 so that the sequence of random numbers based on the
> * seed is the same as in the paper (which uses version 12) ;
. version 12 ;

. ****************************************************************************** ;
. * Y: attended meeting, M: years_schooling 
> ****************************************************************************** ;
. local mediator "yrssch" ;

. local yvar "attended" ;

.  local treat "menarche_age" ;

. medeff  (regress r`mediator' r`treat' `rcvars' ) 
>                 (regress r`yvar' r`treat' r`mediator' `rcvars'), 
>                 treat(r`treat') mediate(r`mediator') sims(1000) seed(3910) vce(robust) ;
Using 0 and 1 as treatment values

Linear regression                               Number of obs     =     23,506
                                                F(10, 23495)      =    1552.38
                                                Prob > F          =     0.0000
                                                R-squared         =     0.3685
                                                Root MSE          =     3.2355

----------------------------------------------------------------------------------
                 |               Robust
         ryrssch |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |   .1173341   .0190462     6.16   0.000     .0800024    .1546659
 rheight_measure |   .0203012   .0028219     7.19   0.000     .0147702    .0258322
            rage |  -.1309331   .0021909   -59.76   0.000    -.1352273   -.1266388
          rhindu |  -.0610753   .1275455    -0.48   0.632    -.3110729    .1889222
         rmuslim |  -1.118959   .1522853    -7.35   0.000    -1.417448     -.82047
             rsc |  -1.484696   .0686764   -21.62   0.000    -1.619306   -1.350086
             rst |   -1.84514   .0971516   -18.99   0.000    -2.035563   -1.654716
            robc |  -.7457034   .0635634   -11.73   0.000    -.8702917    -.621115
rmother_yrs_educ |   .2963721   .0121283    24.44   0.000     .2725998    .3201444
rfather_yrs_educ |   .3204427   .0073642    43.51   0.000     .3060084     .334877
           _cons |  -8.28e-10   .0211035    -0.00   1.000    -.0413642    .0413642
----------------------------------------------------------------------------------

Linear regression                               Number of obs     =     23,506
                                                F(11, 23494)      =      17.22
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0081
                                                Root MSE          =     .25915

----------------------------------------------------------------------------------
                 |               Robust
rattended_panc~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |    .003103   .0015425     2.01   0.044     .0000795    .0061264
         ryrssch |   .0030876   .0005469     5.65   0.000     .0020157    .0041595
 rheight_measure |   .0000359   .0002397     0.15   0.881    -.0004339    .0005056
            rage |   .0021758   .0001844    11.80   0.000     .0018143    .0025372
          rhindu |   .0111595   .0115338     0.97   0.333    -.0114475    .0337666
         rmuslim |  -.0002083   .0131126    -0.02   0.987    -.0259098    .0254932
             rsc |   .0313547   .0057414     5.46   0.000     .0201011    .0426082
             rst |   .0164198   .0079761     2.06   0.040     .0007861    .0320535
            robc |   .0051257   .0047381     1.08   0.279    -.0041613    .0144128
rmother_yrs_educ |  -.0032856   .0009245    -3.55   0.000    -.0050977   -.0014734
rfather_yrs_educ |   .0006204   .0005208     1.19   0.234    -.0004004    .0016412
           _cons |  -3.32e-10   .0016903    -0.00   1.000    -.0033131    .0033131
----------------------------------------------------------------------------------
(22,506 missing values generated)
(22,506 missing values generated)
(22,506 missing values generated)
------------------------------------------------------------------------------------
        Effect                 |  Mean           [95% Conf. Interval]
-------------------------------+----------------------------------------------------
        ACME                   |  .0003607      .0002048       .000549
        Direct Effect          |  .0031716      .0003864      .0061368
        Total Effect           |  .0035323      .0008007      .0064651
        % of Tot Eff mediated  |  .1027414      .0533926      .3730983
------------------------------------------------------------------------------------

.                 ****************************************************************************** ;
. * Y: attended meeting, M: # of children living w/ respondent 
> ****************************************************************************** ;
. local mediator "nchild" ;

. local yvar "attended" ;

.  local treat "menarche_age" ;

. medeff  (regress r`mediator' r`treat' `rcvars' ) 
>                 (regress r`yvar' r`treat' r`mediator' `rcvars'), 
>                 treat(r`treat') mediate(r`mediator') sims(1000) seed(3910) vce(robust) ;
Using 0 and 1 as treatment values

Linear regression                               Number of obs     =     23,506
                                                F(10, 23495)      =     102.00
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0452
                                                Root MSE          =     1.2712

----------------------------------------------------------------------------------
                 |               Robust
         rnchild |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |  -.0280721   .0073693    -3.81   0.000    -.0425163   -.0136278
 rheight_measure |   .0014782   .0009739     1.52   0.129    -.0004306    .0033871
            rage |   .0168332   .0009366    17.97   0.000     .0149973    .0186691
          rhindu |   .0543084   .0442949     1.23   0.220    -.0325124    .1411293
         rmuslim |   .6887416   .0587213    11.73   0.000     .5736441    .8038391
             rsc |   .3396829   .0258653    13.13   0.000     .2889852    .3903807
             rst |   .2827683    .037675     7.51   0.000     .2089229    .3566136
            robc |   .1410756    .023528     6.00   0.000     .0949592     .187192
rmother_yrs_educ |  -.0174956   .0038065    -4.60   0.000    -.0249565   -.0100346
rfather_yrs_educ |  -.0168556   .0024727    -6.82   0.000    -.0217023   -.0120089
           _cons |   1.81e-09    .008291     0.00   1.000     -.016251     .016251
----------------------------------------------------------------------------------

Linear regression                               Number of obs     =     23,506
                                                F(11, 23494)      =      16.65
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0069
                                                Root MSE          =      .2593

----------------------------------------------------------------------------------
                 |               Robust
rattended_panc~t |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |    .003563    .001546     2.30   0.021     .0005327    .0065934
         rnchild |   .0034832   .0012245     2.84   0.004     .0010832    .0058832
 rheight_measure |   .0000934   .0002394     0.39   0.696    -.0003759    .0005627
            rage |   .0017129   .0001736     9.87   0.000     .0013725    .0020532
          rhindu |   .0107818    .011526     0.94   0.350    -.0118099    .0333735
         rmuslim |  -.0060622   .0131541    -0.46   0.645    -.0318451    .0197208
             rsc |   .0255874   .0056928     4.49   0.000     .0144291    .0367457
             rst |   .0097379   .0079058     1.23   0.218    -.0057581    .0252338
            robc |   .0023319    .004725     0.49   0.622    -.0069294    .0115933
rmother_yrs_educ |  -.0023095   .0009072    -2.55   0.011    -.0040877   -.0005313
rfather_yrs_educ |   .0016685   .0004958     3.36   0.001     .0006966    .0026404
           _cons |  -3.41e-10   .0016913    -0.00   1.000    -.0033151    .0033151
----------------------------------------------------------------------------------
(22,506 missing values generated)
(22,506 missing values generated)
(22,506 missing values generated)
------------------------------------------------------------------------------------
        Effect                 |  Mean           [95% Conf. Interval]
-------------------------------+----------------------------------------------------
        ACME                   | -.0000963     -.0001922     -.0000243
        Direct Effect          |  .0036318      .0008403      .0066038
        Total Effect           |  .0035356       .000744      .0065549
        % of Tot Eff mediated  | -.0273551     -.1066716     -.0141337
------------------------------------------------------------------------------------

. ****************************************************************************** ;
. * Y: discusses politics at home,  M: years schooling
> ****************************************************************************** ;
. local mediator "yrssch" ;

. local yvar "discuss" ;

.  local treat "menarche_age" ;

. medeff  (regress r`mediator' r`treat' `rcvars' ) 
>                 (regress r`yvar' r`treat' r`mediator' `rcvars'), 
>                 treat(r`treat') mediate(r`mediator') sims(1000) seed(3910) vce(robust) ;
Using 0 and 1 as treatment values

Linear regression                               Number of obs     =     23,506
                                                F(10, 23495)      =    1552.38
                                                Prob > F          =     0.0000
                                                R-squared         =     0.3685
                                                Root MSE          =     3.2355

----------------------------------------------------------------------------------
                 |               Robust
         ryrssch |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |   .1173341   .0190462     6.16   0.000     .0800024    .1546659
 rheight_measure |   .0203012   .0028219     7.19   0.000     .0147702    .0258322
            rage |  -.1309331   .0021909   -59.76   0.000    -.1352273   -.1266388
          rhindu |  -.0610753   .1275455    -0.48   0.632    -.3110729    .1889222
         rmuslim |  -1.118959   .1522853    -7.35   0.000    -1.417448     -.82047
             rsc |  -1.484696   .0686764   -21.62   0.000    -1.619306   -1.350086
             rst |   -1.84514   .0971516   -18.99   0.000    -2.035563   -1.654716
            robc |  -.7457034   .0635634   -11.73   0.000    -.8702917    -.621115
rmother_yrs_educ |   .2963721   .0121283    24.44   0.000     .2725998    .3201444
rfather_yrs_educ |   .3204427   .0073642    43.51   0.000     .3060084     .334877
           _cons |  -8.28e-10   .0211035    -0.00   1.000    -.0413642    .0413642
----------------------------------------------------------------------------------

Linear regression                               Number of obs     =     23,506
                                                F(11, 23494)      =      16.07
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0072
                                                Root MSE          =     .41212

----------------------------------------------------------------------------------
                 |               Robust
        rdiscuss |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |   .0039219   .0024328     1.61   0.107    -.0008466    .0086904
         ryrssch |   .0065151     .00082     7.95   0.000     .0049079    .0081223
 rheight_measure |   .0007129   .0003364     2.12   0.034     .0000535    .0013722
            rage |   .0011039   .0003118     3.54   0.000     .0004927    .0017151
          rhindu |  -.0208201     .01545    -1.35   0.178    -.0511032    .0094629
         rmuslim |  -.0312138   .0189515    -1.65   0.100      -.06836    .0059324
             rsc |  -.0213253   .0086361    -2.47   0.014    -.0382526   -.0043979
             rst |  -.0604032   .0126822    -4.76   0.000    -.0852611   -.0355453
            robc |  -.0191426   .0078408    -2.44   0.015    -.0345111   -.0037741
rmother_yrs_educ |   .0019739   .0014146     1.40   0.163    -.0007987    .0047466
rfather_yrs_educ |   .0006046   .0008586     0.70   0.481    -.0010783    .0022875
           _cons |  -6.40e-11    .002688    -0.00   1.000    -.0052687    .0052687
----------------------------------------------------------------------------------
(22,506 missing values generated)
(22,506 missing values generated)
(22,506 missing values generated)
------------------------------------------------------------------------------------
        Effect                 |  Mean           [95% Conf. Interval]
-------------------------------+----------------------------------------------------
        ACME                   |  .0007624      .0004709      .0010885
        Direct Effect          |  .0040301     -.0003627      .0087067
        Total Effect           |  .0047925      .0004748      .0094298
        % of Tot Eff mediated  |  .1579655      .0743087      .7131307
------------------------------------------------------------------------------------

. ****************************************************************************** ;
. * Y: discusses politics at home,  M: # of children living w/ respondent 
> ****************************************************************************** ;
. local mediator "nchild" ;

. local yvar "discuss" ;

.  local treat "menarche_age" ;

. medeff  (regress r`mediator' r`treat' `rcvars' ) 
>                 (regress r`yvar' r`treat' r`mediator' `rcvars'), 
>                 treat(r`treat') mediate(r`mediator') sims(1000) seed(3910) vce(robust) ;
Using 0 and 1 as treatment values

Linear regression                               Number of obs     =     23,506
                                                F(10, 23495)      =     102.00
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0452
                                                Root MSE          =     1.2712

----------------------------------------------------------------------------------
                 |               Robust
         rnchild |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |  -.0280721   .0073693    -3.81   0.000    -.0425163   -.0136278
 rheight_measure |   .0014782   .0009739     1.52   0.129    -.0004306    .0033871
            rage |   .0168332   .0009366    17.97   0.000     .0149973    .0186691
          rhindu |   .0543084   .0442949     1.23   0.220    -.0325124    .1411293
         rmuslim |   .6887416   .0587213    11.73   0.000     .5736441    .8038391
             rsc |   .3396829   .0258653    13.13   0.000     .2889852    .3903807
             rst |   .2827683    .037675     7.51   0.000     .2089229    .3566136
            robc |   .1410756    .023528     6.00   0.000     .0949592     .187192
rmother_yrs_educ |  -.0174956   .0038065    -4.60   0.000    -.0249565   -.0100346
rfather_yrs_educ |  -.0168556   .0024727    -6.82   0.000    -.0217023   -.0120089
           _cons |   1.81e-09    .008291     0.00   1.000     -.016251     .016251
----------------------------------------------------------------------------------

Linear regression                               Number of obs     =     23,506
                                                F(11, 23494)      =      11.93
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0054
                                                Root MSE          =      .4125

----------------------------------------------------------------------------------
                 |               Robust
        rdiscuss |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |    .004942   .0024334     2.03   0.042     .0001725    .0097116
         rnchild |   .0091099   .0021151     4.31   0.000     .0049642    .0132556
 rheight_measure |   .0008317   .0003374     2.46   0.014     .0001703     .001493
            rage |   .0000975   .0002949     0.33   0.741    -.0004806    .0006756
          rhindu |  -.0217128    .015427    -1.41   0.159    -.0519507    .0085251
         rmuslim |  -.0447783   .0189652    -2.36   0.018    -.0819513   -.0076053
             rsc |  -.0340927   .0085796    -3.97   0.000    -.0509092   -.0172762
             rst |  -.0750004   .0126049    -5.95   0.000    -.0997068   -.0502941
            robc |  -.0252861   .0078257    -3.23   0.001    -.0406249   -.0099473
rmother_yrs_educ |   .0040642   .0013918     2.92   0.004     .0013362    .0067921
rfather_yrs_educ |   .0028459   .0008209     3.47   0.001     .0012369    .0044548
           _cons |  -8.59e-11   .0026905    -0.00   1.000    -.0052735    .0052735
----------------------------------------------------------------------------------
(22,506 missing values generated)
(22,506 missing values generated)
(22,506 missing values generated)
------------------------------------------------------------------------------------
        Effect                 |  Mean           [95% Conf. Interval]
-------------------------------+----------------------------------------------------
        ACME                   | -.0002529     -.0004469     -.0001021
        Direct Effect          |  .0050503      .0006565       .009728
        Total Effect           |  .0047975      .0004005      .0095364
        % of Tot Eff mediated  | -.0527208     -.2692425     -.0251103
------------------------------------------------------------------------------------

. ****************************************************************************** ;
. * Y: member pol org,  M: years schooling
> ****************************************************************************** ;
. local mediator "yrssch" ;

. local yvar "member" ;

.  local treat "menarche_age" ;

. medeff  (regress r`mediator' r`treat' `rcvars' ) 
>                 (regress r`yvar' r`treat' r`mediator' `rcvars'), 
>                 treat(r`treat') mediate(r`mediator') sims(1000) seed(3910) vce(robust) ;
Using 0 and 1 as treatment values

Linear regression                               Number of obs     =     23,506
                                                F(10, 23495)      =    1552.38
                                                Prob > F          =     0.0000
                                                R-squared         =     0.3685
                                                Root MSE          =     3.2355

----------------------------------------------------------------------------------
                 |               Robust
         ryrssch |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |   .1173341   .0190462     6.16   0.000     .0800024    .1546659
 rheight_measure |   .0203012   .0028219     7.19   0.000     .0147702    .0258322
            rage |  -.1309331   .0021909   -59.76   0.000    -.1352273   -.1266388
          rhindu |  -.0610753   .1275455    -0.48   0.632    -.3110729    .1889222
         rmuslim |  -1.118959   .1522853    -7.35   0.000    -1.417448     -.82047
             rsc |  -1.484696   .0686764   -21.62   0.000    -1.619306   -1.350086
             rst |   -1.84514   .0971516   -18.99   0.000    -2.035563   -1.654716
            robc |  -.7457034   .0635634   -11.73   0.000    -.8702917    -.621115
rmother_yrs_educ |   .2963721   .0121283    24.44   0.000     .2725998    .3201444
rfather_yrs_educ |   .3204427   .0073642    43.51   0.000     .3060084     .334877
           _cons |  -8.28e-10   .0211035    -0.00   1.000    -.0413642    .0413642
----------------------------------------------------------------------------------

Linear regression                               Number of obs     =     23,506
                                                F(11, 23494)      =       2.49
                                                Prob > F          =     0.0041
                                                R-squared         =     0.0018
                                                Root MSE          =     .08186

----------------------------------------------------------------------------------
                 |               Robust
         rmember |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |   .0003531   .0004908     0.72   0.472    -.0006089    .0013151
         ryrssch |   .0005591   .0001854     3.02   0.003     .0001957    .0009225
 rheight_measure |   .0001208   .0000527     2.29   0.022     .0000174    .0002242
            rage |   .0002267   .0000659     3.44   0.001     .0000974    .0003559
          rhindu |  -.0037276   .0043947    -0.85   0.396    -.0123416    .0048863
         rmuslim |  -.0055928   .0047086    -1.19   0.235     -.014822    .0036364
             rsc |   .0014982   .0017686     0.85   0.397    -.0019685    .0049648
             rst |   .0018829   .0023831     0.79   0.429    -.0027881    .0065539
            robc |   .0011145   .0016301     0.68   0.494    -.0020807    .0043096
rmother_yrs_educ |  -.0004947   .0003603    -1.37   0.170    -.0012009    .0002115
rfather_yrs_educ |   .0004937   .0001973     2.50   0.012      .000107    .0008804
           _cons |  -1.02e-11   .0005339    -0.00   1.000    -.0010465    .0010465
----------------------------------------------------------------------------------
(22,506 missing values generated)
(22,506 missing values generated)
(22,506 missing values generated)
------------------------------------------------------------------------------------
        Effect                 |  Mean           [95% Conf. Interval]
-------------------------------+----------------------------------------------------
        ACME                   |  .0000649      .0000212      .0001157
        Direct Effect          |   .000375     -.0005113      .0013184
        Total Effect           |  .0004399     -.0004263      .0013752
        % of Tot Eff mediated  |    .09864     -1.291502      1.492449
------------------------------------------------------------------------------------

. ****************************************************************************** ;
. * Y: member pol org,  M: # of children living w/ respondent 
> ****************************************************************************** ;
. local mediator "nchild" ;

. local yvar "member" ;

.  local treat "menarche_age" ;

. medeff  (regress r`mediator' r`treat' `rcvars' ) 
>                 (regress r`yvar' r`treat' r`mediator' `rcvars'), 
>                 treat(r`treat') mediate(r`mediator') sims(1000) seed(3910) vce(robust) ;
Using 0 and 1 as treatment values

Linear regression                               Number of obs     =     23,506
                                                F(10, 23495)      =     102.00
                                                Prob > F          =     0.0000
                                                R-squared         =     0.0452
                                                Root MSE          =     1.2712

----------------------------------------------------------------------------------
                 |               Robust
         rnchild |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |  -.0280721   .0073693    -3.81   0.000    -.0425163   -.0136278
 rheight_measure |   .0014782   .0009739     1.52   0.129    -.0004306    .0033871
            rage |   .0168332   .0009366    17.97   0.000     .0149973    .0186691
          rhindu |   .0543084   .0442949     1.23   0.220    -.0325124    .1411293
         rmuslim |   .6887416   .0587213    11.73   0.000     .5736441    .8038391
             rsc |   .3396829   .0258653    13.13   0.000     .2889852    .3903807
             rst |   .2827683    .037675     7.51   0.000     .2089229    .3566136
            robc |   .1410756    .023528     6.00   0.000     .0949592     .187192
rmother_yrs_educ |  -.0174956   .0038065    -4.60   0.000    -.0249565   -.0100346
rfather_yrs_educ |  -.0168556   .0024727    -6.82   0.000    -.0217023   -.0120089
           _cons |   1.81e-09    .008291     0.00   1.000     -.016251     .016251
----------------------------------------------------------------------------------

Linear regression                               Number of obs     =     23,506
                                                F(11, 23494)      =       2.09
                                                Prob > F          =     0.0175
                                                R-squared         =     0.0013
                                                Root MSE          =     .08188

----------------------------------------------------------------------------------
                 |               Robust
         rmember |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
   rmenarche_age |   .0004122   .0004907     0.84   0.401    -.0005496    .0013739
         rnchild |  -.0002337   .0003454    -0.68   0.499    -.0009108    .0004434
 rheight_measure |   .0001325   .0000533     2.49   0.013      .000028    .0002369
            rage |   .0001574   .0000585     2.69   0.007     .0000427     .000272
          rhindu |  -.0037491   .0043929    -0.85   0.393    -.0123595    .0048613
         rmuslim |  -.0060575   .0046882    -1.29   0.196    -.0152467    .0031318
             rsc |   .0007474   .0017492     0.43   0.669    -.0026812    .0041761
             rst |   .0009173   .0023484     0.39   0.696    -.0036857    .0055204
            robc |   .0007305   .0016242     0.45   0.653     -.002453    .0039139
rmother_yrs_educ |  -.0003331   .0003541    -0.94   0.347    -.0010272     .000361
rfather_yrs_educ |   .0006689   .0001958     3.42   0.001     .0002851    .0010527
           _cons |  -1.02e-11   .0005341    -0.00   1.000    -.0010468    .0010468
----------------------------------------------------------------------------------
(22,506 missing values generated)
(22,506 missing values generated)
(22,506 missing values generated)
------------------------------------------------------------------------------------
        Effect                 |  Mean           [95% Conf. Interval]
-------------------------------+----------------------------------------------------
        ACME                   |  6.90e-06      -.000012      .0000279
        Direct Effect          |   .000434      -.000452      .0013772
        Total Effect           |  .0004409     -.0004421      .0014001
        % of Tot Eff mediated  |   .010195     -.2072136      .1420131
------------------------------------------------------------------------------------

. log close ;
      name:  <unnamed>
       log:  R:\personlig\fenellac\menarche_replication\analysis\temp/results-for-table-mediation-analysis-panel-c.log
  log type:  text
 closed on:  30 Apr 2020, 18:29:15
------------------------------------------------------------------------------------------------------------------------------------------
